package com.threeti.mecool.core.domain.model.project;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.threeti.jiayusms.framework.domain.support.DefaultDomainEntity;

/** 项目 */
@Entity
@Table(name = "DM_PROJECT")
public class Project extends DefaultDomainEntity {

//	private ProjectTemplate projectTemplate;
//
//	private List<Task> tasks;
//
//	private Plan plan;
  
  private String code;
  
  private String name;
  
  private Date startDate = new Date();
  
  private Date endDate = new Date();

  private String description;

  public Project(String code, String name) {
    super();
    this.code = code;
    this.name = name;
  }

  /** 项目编号 */
  public String getCode() {
    return code;
  }

  /** 项目名称 */
  public String getName() {
    return name;
  }

  /** 项目开始日期 */
  public Date getStartDate() {
    return startDate;
  }

  /** 项目结束日期 */
  public Date getEndDate() {
    return endDate;
  }

  /** 项目描述 */
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  @Override
  public String toString() {
    return "Project [code=" + code + ", name=" + name + ", startDate=" + startDate + ", endDate=" + endDate + ", description=" + description + "]";
  }

  Project() {
    super();
  }
  
}
